﻿using System;
using System.Drawing;
using System.Windows.Forms;
using DC2010;
using log4net;

namespace DC2010_EditorInfo
{
    public partial class Form1 : Form
    {
        /// <summary>
        /// Log utility
        /// </summary>
        protected readonly ILog log = LogManager.GetLogger(typeof(Form1));

        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            if (!DesignMode)
            {
                // run as console app
                NativeMethods.AllocConsole();
                log.Error("test");

                Root.I.Ini();
                log.Warn("Editor, Loaded");

            }
        }

        private void button1_Click(object sender, EventArgs e)
        {
            EffectsForm ef = new EffectsForm();
            ef.Show();
        }

        private void crystalButton2_Click(object sender, EventArgs e)
        {
            CreaturesForm ef = new CreaturesForm();
            ef.Show();
        }

        private void crystalButton3_Click(object sender, EventArgs e)
        {
           // SpritesForm ef = new SpritesForm();
           // ef.Show();
        }

        private void crystalButton4_Click(object sender, EventArgs e)
        {
            ItemsForm ef = new ItemsForm();
            ef.Show();
        }

        private void crystalButton5_Click(object sender, EventArgs e)
        {
            EventsForm ef = new EventsForm();
            ef.Show();
        }

        private void crystalButton6_Click(object sender, EventArgs e)
        {
            ConditionsForm ef = new ConditionsForm();
            ef.Show();
        }

        private void crystalButton7_Click(object sender, EventArgs e)
        {
            ItemsGfxForm gef = new ItemsGfxForm();
            gef.ShowDialog();
        }
    }
}
